<!DOCTYPE html>
<html lang="en">
<head>
  <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <title>库存管理系统</title>
        <!-- plugins:css -->
        <link rel="stylesheet" href="/static/vendors/mdi/css/materialdesignicons.min.css">
        <link rel="stylesheet" href="/static/vendors/base/vendor.bundle.base.css">
        <!-- endinject -->
        <!-- plugin css for this page -->
        <link rel="stylesheet" href="/static/vendors/datatables.net-bs4/dataTables.bootstrap4.css">
        <!-- End plugin css for this page -->
        <!-- inject:css -->
        <link rel="stylesheet" href="/static/css/style.css">
        <!-- endinject -->
        <link rel="shortcut icon" href="/static/images/favicon.png" />
</head>
<body>
<frame frameborder=1 width="100%" height="500px" >
    <div class="row stretch-card"><!--商品出入库信息，根据数据库填写-->
      <div class="card">
        <div class="card-body">
          <h class="card-title">商品入库信息表</h>
          <div class="table-responsive pt-3">
            <table class="table table-bordered">
              <thead>
                <tr>
                  <th>#</th>
                  <th>订单编号</th>
                  <th>商品代码</th>
                  <th>商品名称</th>
                  <th>商品流转量</th>
                  <th>入库时间</th>
                  <th>入库</th>
                </tr>
              </thead>
              </tbody>
                  {% for item in stock_in_list %}
                <tr class="table-info">
                  <td>{{forloop.counter}}</td>
                  <td>{{item.procure}}</td>
                  <td>{{item.goods_id}}</td>
                  <td>{{item.goods_name}}</td>
                  <td>{{item.in_num}}</td>
                  <td>{{item.in_time}}</td>
                  <td class="text-dark">{{item.in_status_cn}}</td>
                </tr>
                  {% endfor %}
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
</frame>

<frame frameborder=1 width="100%" height="500px" >
    <div class="row stretch-card"><!--商品出入库信息，根据数据库填写-->
      <div class="card">
        <div class="card-body">
          <h class="card-title">商品出库信息表</h>
          <div class="table-responsive pt-3">
            <table class="table table-bordered">
              <thead>
                <tr>
                  <th>#</th>
                  <th>订单编号</th>
                  <th>商品代码</th>
                  <th>商品名称</th>
                  <th>商品流转量</th>
                  <th>出库时间</th>
                  <th>出库</th>
                </tr>
              </thead>
              </tbody>
                  {% for item in stock_out_list%}
                <tr class="table-info">
                  <td >{{forloop.counter}}</td>
                  <td>{{item.order.order_id}}</td>
                  <td>{{item.goods.goods_id}}</td>
                  <td>{{item.goods_name}}</td>
                  <td>{{item.out_num}}</td>
                  <td>{{item.out_time}}</td>
                  <td class="text-danger">{{item.out_status_cn}}</td>
                </tr>
                  {% endfor %}
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
</frame>

<frame frameborder=1 width="100%" height="500px" >
    <div class="row stretch-card"><!--商品出入库信息，根据数据库填写-->
      <div class="card">
        <div class="card-body">
          <h class="card-title">商品退货信息表</h>
          <div class="table-responsive pt-3">
            <table class="table table-bordered">
              <thead>
                <tr>
                  <th>#</th>
                  <th>订单编号</th>
                  <th>商品代码</th>
                  <th>商品名称</th>
                  <th>商品流转量</th>
                  <th>退货时间</th>
                  <th>退货</th>
                </tr>
              </thead>
              </tbody>
                  {% for item in stock_return_list%}
                <tr class="table-info">
                  <td >{{forloop.counter}}</td>
                  <td>{{item.order_id}}</td>
                  <td>{{item.goods.goods_id}}</td>
                  <td>{{item.goods_name}}</td>
                  <td>{{item.goods_num}}</td>
                  <td>{{item.return_time}}</td>
                  <td class="text-warning">{{item.return_status_cn}}</td>
                </tr>
                  {% endfor %}
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
</frame>

</body>
</html>